package com.settlement.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.settlement.system.model.entity.PddOrder;
import com.settlement.system.model.query.PddOrderQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* <p>
* 拼多多订单 Mapper 接口
* </p>
*
* @author huangrensen
* @since 2024-04-13
*/
@Mapper
public interface PddOrderMapper extends BaseMapper<PddOrder> {

    /**
    * 插入数据
    *
    * @param pddOrder 实体
    * @return
    */
    int insertData(PddOrder pddOrder);

    /**
    * 更新数据
    *
    * @param pddOrder 实体
    * @return
    */
    int update(PddOrder pddOrder);

    /**
    * 查询数据
    *
    * @param pddOrder 实体
    * @return
    */
    List<PddOrder> getList(PddOrderQuery pddOrder);

    /**
    * 分页查询
    *
    * @param pddOrder 实体
    * @return
    */
    Page<PddOrder> getPage(Page<PddOrder> page, PddOrderQuery queryParams);

    /**
     * 是否存在表
     * @param tableName
     * @return
     */
    String existTable(@Param("tableName")String tableName);

    int createTable(@Param("tableName")String tableName);
}
